import VueRouter from "vue-router";

const routes = [
  {
    path: "/",
    redirect: "/login",
  },
  {
    path: "/login",
    component: () => import("@/demo/login.vue"),
    name: "Login",
    meta: {
      title: "登录"
    }
  },
  {
    path: "/ellipsis",
    component: () => import("@/demo/ellipsis.vue"),
    name: "Ellipsis",
    meta: {
      title: "文本省略"
    }
  },
  {
    path: "/upload",
    component: () => import("@/demo/upload.vue"),
    name: "Upload",
    meta: {
      title: "上传"
    }
  }
];

const router = new VueRouter({
  mode: 'history',
  routes
});

export default router;
export { routes };
